const path=require('path');

console.log(
    path.normalize('/test/log.txt'),
    path.join('test','log.txt'),
    path.resolve('/test','./log.txt'),
    path.isAbsolute('.'),
    path.relative('/','.')
);
let obj=path.parse(('/test/log.txt'));
let position=path.format(obj);
console.log(obj,position);
console.log(
    path.dirname('/test/log.txt'),
    path.basename('/test/log.txt'),
    path.extname('/test/log.txt')
);
console.log(path.sep,path.delimiter,path.posix,path.win32);
